/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elaborate.h2x.transform;

/**
 *
 * @author lendle
 */
public class DefaultRelationImpl implements Relation{

    protected TransformingNodeId context;
    protected TransformingNodeId target;
    protected RelationType relationType;

    /**
     * Get the value of relationType
     *
     * @return the value of relationType
     */
    public RelationType getRelationType() {
        return relationType;
    }

    /**
     * Set the value of relationType
     *
     * @param relationType new value of relationType
     */
    public void setRelationType(RelationType relationType) {
        this.relationType = relationType;
    }


    /**
     * Get the value of target
     *
     * @return the value of target
     */
    public TransformingNodeId getTarget() {
        return target;
    }

    /**
     * Set the value of target
     *
     * @param target new value of target
     */
    public void setTarget(TransformingNodeId target) {
        this.target = target;
    }


    /**
     * Get the value of context
     *
     * @return the value of context
     */
    public TransformingNodeId getContext() {
        return context;
    }

    /**
     * Set the value of context
     *
     * @param context new value of context
     */
    public void setContext(TransformingNodeId context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "" + context + ", relationType=" + relationType;
    }
}
